{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "a108e6b9",
   "metadata": {},
   "source": [
    " ## 1.列表进阶\n",
    " ## 2.课本项目\n",
    " ## 3.留一个课堂项目完成"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e4a4519e",
   "metadata": {},
   "source": [
    "## 1.1 接上周内容（） 列表的方法-----remove"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "76978978",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9cc69c1f",
   "metadata": {},
   "source": [
    "* 我怎么知道在数据列表里面呢？\n",
    " > 1.先查询\n",
    " > 2.后删除\n",
    " * in 方法(查询元素的方法)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "306e4a54",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n"
     ]
    }
   ],
   "source": [
    "# 列表的循环\n",
    "for i in name_list:\n",
    "    if i ==\"张三\":\n",
    "        print(i)\n",
    "        name_list.remove(\"张三\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "4d9a48f0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "1b318dd7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"小明\"in name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "3f5ffbc0",
   "metadata": {},
   "outputs": [],
   "source": [
    "if\"小明\"in name_list:\n",
    "    name_list.remove(\"小明\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "50838908",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "621d8a60",
   "metadata": {},
   "source": [
    "## 1.2 列表的其他方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "a6c9488c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# clear 清空 ，清楚列表中的所有元素\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "702fa814",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.clear()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "06ccaf7f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "686e10c5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# count 查看list中统计元素的数量\n",
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "b199f6c5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list.count(\"李四\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "eaf31923",
   "metadata": {},
   "outputs": [],
   "source": [
    "#案例\n",
    "# 假设掷骰子100次，统计1-6个出现多少次\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "1e1f78db",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 是不是需要现有一个空列表？来存放我们产生的数据呢？\n",
    "random_list = []\n",
    "# 增加数据到列表里面？\n",
    "for i in range(10000):\n",
    "    random_list.append(random.randint(1,6))\n",
    "#    print(random.randint(1,6))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "f99a881f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[3, 1, 4, 4, 3, 6, 5, 4, 1, 5, 1, 5, 1, 4, 2, 2, 4, 4, 2, 3, 1, 3, 4, 5, 4, 2, 4, 3, 2, 5, 2, 3, 5, 5, 4, 5, 5, 1, 1, 4, 2, 2, 1, 1, 3, 5, 6, 2, 2, 5, 6, 1, 6, 5, 3, 4, 1, 4, 3, 3, 5, 3, 6, 5, 2, 2, 2, 5, 1, 1, 4, 3, 2, 6, 4, 4, 5, 2, 5, 6, 1, 1, 3, 1, 4, 6, 5, 3, 4, 5, 6, 4, 3, 2, 1, 4, 6, 1, 1, 5, 1, 2, 4, 4, 5, 1, 5, 4, 4, 2, 6, 3, 3, 3, 4, 2, 1, 2, 5, 4, 4, 3, 2, 3, 5, 3, 4, 2, 4, 6, 6, 1, 4, 5, 2, 5, 4, 1, 6, 4, 2, 2, 1, 1, 1, 6, 5, 4, 4, 4, 5, 5, 5, 2, 5, 2, 5, 2, 2, 3, 4, 6, 4, 1, 6, 1, 3, 4, 3, 2, 1, 4, 5, 1, 5, 6, 2, 1, 4, 4, 2, 6, 5, 2, 5, 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, 2, 3, 2, 2, 5, 6, 2, 5, 6, 6, 4, 5, 1, 4, 1, 1, 1, 5, 2, 3, 2, 1, 4, 6, 5, 5, 2, 5, 5, 4, 2, 4, 3, 6, 6, 5, 3, 4, 6, 5, 3, 3, 2, 6, 6, 5, 5, 1, 5, 6, 3, 3, 1, 5, 2, 1, 5, 1, 2, 2, 3, 1, 1, 2, 4, 6, 5, 2, 6, 4, 5, 5, 5, 1, 6, 2, 5, 2, 6, 2, 4, 2, 1, 3, 3, 3, 2, 3, 2, 1, 6, 4, 5, 3, 5, 4, 6, 6, 3, 6, 3, 6, 5, 6, 2, 2, 5, 4, 2, 1, 4, 6, 4, 6, 6, 3, 2, 6, 1, 2, 2, 3, 5, 4, 6, 4, 2, 6, 4, 4, 2, 3, 2, 1, 3, 1, 5, 2, 4, 3, 2, 1, 4, 2, 6, 6, 1, 5, 2, 3, 5, 6, 5, 5, 1, 1, 3, 3, 3, 3, 2, 2, 2, 3, 6, 5, 1, 5, 6, 3, 6, 2, 4, 6, 5, 4, 3, 2, 4, 1, 5, 5, 5, 5, 6, 3, 5, 2, 6, 1, 4, 6, 4, 6, 4, 3, 3, 1, 4, 6, 5, 5, 6, 1, 1, 5, 5, 4, 3, 6, 1, 4, 6, 5, 1, 6, 4, 5, 3, 1, 6, 3, 1, 5, 4, 4, 6, 4, 5, 2, 4, 3, 5, 1, 4, 4, 5, 2, 3, 3, 4, 6, 6, 4, 2, 1, 6, 1, 6, 2, 6, 3, 1, 5, 5, 6, 5]\n"
     ]
    }
   ],
   "source": [
    "print(random_list)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "e76c1501",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 1631\n",
      "2 1631\n",
      "3 1698\n",
      "4 1752\n",
      "5 1632\n",
      "6 1656\n"
     ]
    }
   ],
   "source": [
    "for i in range(1,7):\n",
    "    print(i,random_list.count(i))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "944b0197",
   "metadata": {},
   "source": [
    "### 1.3 列表元素的排序 sort()和reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "id": "18e9c135",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "id": "4994f2c1",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.sort()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "id": "833deabd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jalex', '小明', '张三', '李四', '李四']"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "9a3757e3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[20, 18, 19, 21, 22, 30, 17]"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list = [20,18,19,21,22,30,17]\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "aac65b94",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[17, 18, 19, 20, 21, 22, 30]"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list.sort()\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "id": "88fd8495",
   "metadata": {},
   "outputs": [],
   "source": [
    "age_list.reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "7b05788d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 22, 21, 20, 19, 18, 17]"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "18513c11",
   "metadata": {},
   "source": [
    "### 1.4 copy()\n",
    "\n",
    "> 1. =\n",
    "> 2. copy()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "id": "5263c437",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2084899986624\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "print(id(name_list01))\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "1bae0c76",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "1ae524a0",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list01.append(\"Marry\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "c391842a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "e15f5a1f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "76f30d4b",
   "metadata": {},
   "source": [
    "* 如上原因：我们不得不找一个方法来实现真正的复制"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "92fd4b82",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "89cf073a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01.copy()\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "3c4f0b59",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'李四'"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01.pop()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "e87075c4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "id": "9093b304",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "baf60402",
   "metadata": {},
   "source": [
    "# 购物车程序项目:\n",
    "> 1.运行程序后，让用户输入支付宝余额，然后打印我们的商品列表给用户。\n",
    "> 2.让用户输入商品编号进行商品的购买。\n",
    "> 3.用户选择商品后，检查用户的余额是否够，若够则直接扣款，不够则提醒用户。\n",
    "> 4.用户可以随时退出购买，退出时打印用户已购买的商品和支付宝余额。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8f79c5d1",
   "metadata": {},
   "outputs": [],
   "source": [
    "alipay = input(\"支付宝余额\")\n",
    "商品列表 = []\n",
    "print(商品列表)\n",
    "users_choose = input()\n",
    "if 钱包余额>商品价格:\n",
    "    扣钱,加商品进购物车(append)\n",
    "else\n",
    "     print(\"你的钱不够\")\n",
    "    break 退出循环，打印购物车"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
